home *** CD-ROM | disk | FTP | other *** search
/ Greenhouse Effect Detection Expriment / NASA Greenhouse Effect Detection Expriment 1992 - Disc 2.iso / software / dos / cdf22pc / src / include / dirutils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-02  |  1.6 KB  |  70 lines

  1. /******************************************************************************
  2. *
  3. *  NSSDC/CDF                      Directory utilities header.
  4. *
  5. *  Version 1.0, 10-Feb-92, ST Systems (STX)
  6. *
  7. *  Modification history:
  8. *
  9. *   V1.0  10-Feb-92, J Love    Original version.
  10. *
  11. *****************************************************************************/
  12.  
  13. /******************************************************************************
  14. * NOTES:
  15. *
  16. *   On the IBM PC, __MSDOS__ defined for Borland C, MSDOS defined for
  17. * Microsoft C.
  18. *****************************************************************************/
  19.  
  20. #if !defined(___dirutils_h___)
  21. #define ___dirutils_h___
  22.  
  23. /****************************************************************************/
  24.  
  25. #define MAX_PATH_LEN        255
  26. #define MAX_DIR_LEN        255
  27. #define MAX_NAME_LEN        32
  28. #define MAX_PATTERNS        16
  29.  
  30. #if defined(unix)
  31. #define MAX_USERNAME_LEN    100
  32. #define MAX_ENVVAR_LEN        80
  33. #endif
  34.  
  35. #if !defined(NUL)
  36. #define NUL    '\0'        /* Null character */
  37. #endif
  38.  
  39. #if !defined(TRUE)
  40. #define TRUE (-1)
  41. #endif
  42.  
  43. #if !defined(FALSE)
  44. #define FALSE 0
  45. #endif
  46.  
  47. #if defined(vms) | defined(__MSDOS__) | defined(MSDOS)
  48. int DirList (char *, char ***, char ***);
  49. void ParsePath (char *, char *, char *);
  50. void ExpandPath (char *, char *);
  51. int IsDir (char *);
  52. int IsReg (char *);
  53. void AppendToDir (char *, char *);
  54. void RemoveExtensions (int, char **);
  55. #endif
  56.  
  57. #if defined(unix)
  58. int DirList ();
  59. void ParsePath ();
  60. void ExpandPath ();
  61. int IsDir ();
  62. int IsReg ();
  63. void AppendToDir ();
  64. void RemoveExtensions ();
  65. #endif
  66.  
  67. /*****************************************************************************/
  68.  
  69. #endif   /*___dirutils_h___*/
  70.